Hi Russ,
What do you have the S Command in KMotionCNC configured to do (in KMotionCNC | ToolSetup | M0-M9 | S) ?
Regards TK
PS it seems you hijacked Tapio's Thread. In the future please start a new thread for issues unrelated to the original topic of the Thread.
Group: DynoMotion |
Message: 11173 |
From: Russ Larson |
Date: 3/7/2015 |
Subject: Re: Kanalog DAC7 |
Tom, Not sure how I hijacked Tapio's thread, since I started my own subject, never had that happen before, my apologies. What I did was follow the exact Basic Configuration outlined on the Dynomotion website as listed below. On the tool setup screen in Kmotion CNC I have configured M3, M4, M5 and S-DAC exactly as listed. I did think there was an error on the M5 example as I think that bit 152 and bit 153 should be set to zero instead of what you have listed. S-DAC is using DAC7 with scale -2.047 offset 0, min -2047 max 0. The DAC outputs different voltages with S100, S500, and maxes at S1000 at 10V. The assumption listed below says a value of S1000 will output 10V and that is exactly what happens. I assumed this was due to the fact that myspindledefs.h contains the following: #define FACTOR (1000/60.0) I am not using any C-programs for this as I am following the basic configuration using just IO. Russ Basic Configuration For basic configurations where the spindle CW/CCW/OFF can be controlled with one or two IO bits (normally Kanalog Relay Driver or Opto Outputs) and with speed control from a Kanalog DAC then no C programming is required. An example configuration is shown below. Note the S action is mapped to Kanalog DAC #7 with a negative scale of -2.047. Kanalog DAC outputs are inverting such that negative DAC counts result in a positive voltage. The assumption in this case is that an S value of 1000RPM would correspond to -2047 DAC counts or +10V. And the allowed range is from -2047 to 0 counts (0V to +10V). An additional advantage to using I/O bits rather than C Programs is that they I/O commands will be embedded within the motion stream and will occur synchronously with the motion and without any pause in the motion. This is especially useful for faster systems with Lasers/Engravers/Extruders instead of a traditional Spindle. For more information on buffered IO commands see here. From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] Sent: Saturday, March 07, 2015 7:12 PM To: DynoMotion@yahoogroups.com Subject: Re: [DynoMotion] Kanalog DAC7 What do you have the S Command in KMotionCNC configured to do (in KMotionCNC | ToolSetup | M0-M9 | S) ? PS it seems you hijacked Tapio's Thread. In the future please start a new thread for issues unrelated to the original topic of the Thread. I have my KFLOP/KANALOG working for motion everything seems fine. My question involves using the basic configuration for Spindle using DAC7. I set it up just like the example, however have not connected the relays to the VFD at this point. Right now I am just checking outputs and the DAC output. When I issue a S0 command sure enough the DAC voltage goes to .027V and when I issue S1000 the DAC goes to 10VDC. My spindle goes to 18000 RPM at 300Hz so I modified the FACTOR in my init.c to #define FACTOR (18000/60.0) and also modified mySpindleDefs.h with the same line. I then saved and compiled my init.c file and downloaded it to the KFLOP. When I start KMOTION CNC and press the init button it initializes the machine and I can move, however when I run the test on the DAC7 I get the example same results as the default. S1000 gives me 10VDC. I should only get 10V when I issue a S18000? I must be missing something somewhere. I could only find one copy of myspindledefs.h, which was under C programs/spindleusingjogs/css I had no compiler errors but it does not appear to be using the new factor, can you point me in the right direction please. Thanks
|
|
Group: DynoMotion |
Message: 11174 |
From: Russ Larson |
Date: 3/8/2015 |
Subject: Re: Kanalog DAC7 |
Tom, After sleep on this I figured out what was wrong. On the tool setup screen the S line in the Dynomotion example reads as below. S DAC Set DAC 7 Scale -2.047 offset 0 min -2047 max 0 My confusion was over the FACTOR setting. I entered the line above and it behaved exactly as described in the documentation. As I thought about this last night it hit me this line is actually dividing up the 2048 DAC steps by voltage, so the 1000 RPM example is the reason the scale was set to -2.047 In my case I had a spindle that ran 18000 RPM so I had to change the scale factor. 2047/18000 = .1137 I then set the following in the S DAC line. S DAC Set DAC7 Scale -.1137 offset 0 min -2047 max 0 This allows me to range the spindle the full RPM range. It would appear that the FACTOR setting is used in calculating the RPM displayed in KMOTION. Thanks Russ From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] Sent: Saturday, March 07, 2015 9:35 PM To: DynoMotion@yahoogroups.com Subject: RE: [DynoMotion] Kanalog DAC7 Tom, Not sure how I hijacked Tapio's thread, since I started my own subject, never had that happen before, my apologies. What I did was follow the exact Basic Configuration outlined on the Dynomotion website as listed below. On the tool setup screen in Kmotion CNC I have configured M3, M4, M5 and S-DAC exactly as listed. I did think there was an error on the M5 example as I think that bit 152 and bit 153 should be set to zero instead of what you have listed. S-DAC is using DAC7 with scale -2.047 offset 0, min -2047 max 0. The DAC outputs different voltages with S100, S500, and maxes at S1000 at 10V. The assumption listed below says a value of S1000 will output 10V and that is exactly what happens. I assumed this was due to the fact that myspindledefs.h contains the following: #define FACTOR (1000/60.0) I am not using any C-programs for this as I am following the basic configuration using just IO. Russ Basic Configuration For basic configurations where the spindle CW/CCW/OFF can be controlled with one or two IO bits (normally Kanalog Relay Driver or Opto Outputs) and with speed control from a Kanalog DAC then no C programming is required. An example configuration is shown below. Note the S action is mapped to Kanalog DAC #7 with a negative scale of -2.047. Kanalog DAC outputs are inverting such that negative DAC counts result in a positive voltage. The assumption in this case is that an S value of 1000RPM would correspond to -2047 DAC counts or +10V. And the allowed range is from -2047 to 0 counts (0V to +10V). An additional advantage to using I/O bits rather than C Programs is that they I/O commands will be embedded within the motion stream and will occur synchronously with the motion and without any pause in the motion. This is especially useful for faster systems with Lasers/Engravers/Extruders instead of a traditional Spindle. For more information on buffered IO commands see here. What do you have the S Command in KMotionCNC configured to do (in KMotionCNC | ToolSetup | M0-M9 | S) ? PS it seems you hijacked Tapio's Thread. In the future please start a new thread for issues unrelated to the original topic of the Thread. I have my KFLOP/KANALOG working for motion everything seems fine. My question involves using the basic configuration for Spindle using DAC7. I set it up just like the example, however have not connected the relays to the VFD at this point. Right now I am just checking outputs and the DAC output. When I issue a S0 command sure enough the DAC voltage goes to .027V and when I issue S1000 the DAC goes to 10VDC. My spindle goes to 18000 RPM at 300Hz so I modified the FACTOR in my init.c to #define FACTOR (18000/60.0) and also modified mySpindleDefs.h with the same line. I then saved and compiled my init.c file and downloaded it to the KFLOP. When I start KMOTION CNC and press the init button it initializes the machine and I can move, however when I run the test on the DAC7 I get the example same results as the default. S1000 gives me 10VDC. I should only get 10V when I issue a S18000? I must be missing something somewhere. I could only find one copy of myspindledefs.h, which was under C programs/spindleusingjogs/css I had no compiler errors but it does not appear to be using the new factor, can you point me in the right direction please. Thanks
|
|
| |